//
//  FXUserInfo.h
//  FetionDataStructure
//
//  Created by Ronnie on 08-12-2.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#define _HAVE_TYPE_BOOL
#include "include/libfetion.h"

@interface FXSysMessage : NSObject {
	LPARAM lParam;
	WPARAM wParam;
}
- (id)initWithLParam:(LPARAM)lp WParam:(WPARAM)wp;
- (LPARAM)getLParam;
- (WPARAM)getWParam;
@end

/*
 * Fetion user info class
 */
@interface FXUserInfo : NSObject {
	// user info cluster
	const Fetion_Account*		user_account;
	NSString*					user_showName;
	
	// user info of states and related
	bool						user_isPc;
	int							user_isAuthed;
	bool						user_isInBlackList;
	bool						user_isOnline;
	int							user_state;
	
	// user group info
	int							userOf_groupId;
	
}

+ (id)fxUserWithAccount:(const Fetion_Account*)account;
- (id)initWithAccount:(const Fetion_Account*)account;
- (void)updateSelfInfo;
- (void)updateUserName;

- (int)groupId;
- (long)userID;
- (NSString*)userName;
- (NSString*)userImpresa;
- (int)userState;
- (void)PrintUserInfo;
- (BOOL)isInBlackList;
- (const Fetion_Account*)getFetionAccount;

- (void)setUserGroupId:(int)gid;


@end
